package letsjava.pattern.proxy;

public class FormPermission {
	int accessLevel;
	public FormPermission(int level){
		this.accessLevel = level;
	}
	public boolean allow(String string) {
	    if(string.equals("insert")){
	    	if(this.accessLevel>5){
	    		return true;
	    	}else{
	    		return false;
	    	}
	    }
	    return false;
    }

}
